<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/1/20
 * Time: 9:06
 */

namespace app\index\controller;


use think\Controller;

class Goods extends Controller {
    public function index() {
        return $this->fetch('goods');
    }
    public function presell() {
        return $this->fetch('goods-presell');
    }
    public function issue($class_id='',$op='') {
        return $this->fetch('goods-issue',['class_id'=>$class_id,'op'=>$op]);
    }
    public function waitsell($op="") {
        if ($op == "edit" || $op == "image"){
            return $this->fetch('goods-edit',['op'=>$op]);
        }else{
            return $this->fetch('goods-waitsell',['op'=>$op]);
        }
    }
}